﻿using mozhi.smarterp.Finance.Basedatas;
using mozhi.smarterp.Finance.Enums;
using System;
using System.Collections.Generic;
using System.Text;
using Volo.Abp.Application.Dtos;

namespace mozhi.smarterp.Finance.Finances.Templates
{
    public class JournalTemplateUpdateDto : EntityDto<Guid>
    {
        public string Code { set; get; }

        public string Name { set; get; }

        public Guid NumberPrefixId { set; get; }

        public List<JournalTemplateItemUpdateDto> Items { set; get; }
    }

    public class JournalTemplateItemUpdateDto : EntityDto<Guid>
    {
        public string Summary { private set; get; }

        public Guid AccountId { private set; get; }

        public AccountDirectionType Direction { private set; get; }

        public Guid? CurrencyId { set; get; }

        public decimal Amount { set; get; }

        public decimal AmountFr { set; get; }

        public decimal ExchangeRate { set; get; }

        public decimal DebitAmount { set; get; }

        public decimal CreditAmount { set; get; }

        public int Index { set; get; }

        public List<DimensionGroupValueItemDto> DimensionGroupValueItems { set; get; }
    }
}
